import type {App} from 'vue'
import {createRouter,createWebHashHistory} from 'vue-router'
import {routes} from './routes'




export const router = createRouter({
  routes,
  history: createWebHashHistory(),
  scrollBehavior: () => ({ left: 0, top: 0 })
})

export function initRouter(app: App<Element>) {
  app.use(router)
} 
